package com.fasteat.mall.service.client;

import com.fasteat.common.entity.Result;
import com.fasteat.mall.entity.dto.Message;
import com.fasteat.mall.handler.NotifyClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author 白sa能
 * @className
 * @date Created in 7:39 PM 2/14/21
 * @package com.fasteat.mall.service.client
 * @Description
 */
@FeignClient(value = "fasteat-message-service", fallback = NotifyClientFallback.class)
public interface NotifyClient {
    @PostMapping("userId")
    public Result sendVerify(@RequestBody Message message);
}
